--#include "data\functions\Activity\OpenServer\OpenServerGuildSbkWar.lua" once
--#include "data\functions\Activity\OpenServer\OpenServerBoss.lua" once
--#include "data\functions\Activity\OpenServer\OpenServerSports.lua" once
--#include "data\functions\Activity\OpenServer\OpenServerGiftBag.lua" once
--#include "data\functions\Activity\OpenServer\OpenServerDailyRecharge.lua" once
--#include "data\functions\Activity\OpenServer\OpenServerTotalRecharge.lua" once
--#include "data\functions\Activity\OpenServer\OpenServerRechargeRank.lua" once
--#include "data\functions\Activity\OpenServer\OpenServerConsumeRank.lua" once
--#include "data\functions\Activity\OpenServer\OpenServerFirstRecharge.lua" once
--#include "data\functions\Activity\OpenServer\OpenServerSuperPurchase.lua" once
--#include "data\functions\Activity\OpenServer\OpenServerPKRank.lua" once
--#include "data\functions\Activity\OpenServer\OpenServerEquipGoldRecover.lua" once
--#include "data\functions\Activity\OpenServer\OpenServerFashionDis.lua" once
--#include "data\functions\Activity\OpenServer\OpenServerHeroSwing.lua" once


--开服活动



MiscsImplement.OpenServerGiftBagInfo =  function( sysarg, msgid, packet )
	SendOpenServerGiftData(sysarg)
end

MiscsImplement.OpenServerBuyGiftBag =  function( sysarg, msgid, packet )
	BuyOpenServerGift(sysarg,packet)
end


MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cGetPreferentialGiftInfo, MiscsImplement.OpenServerGiftBagInfo)
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cBuyPreferentialGift, MiscsImplement.OpenServerBuyGiftBag)


MiscsImplement.OpenServerSportsInfo =  function( sysarg, msgid, packet )
	OpenServerGetActData(sysarg,packet)
end

MiscsImplement.OpenServerSportsGetAward =  function( sysarg, msgid, packet )
	OpenServerGetActAward(sysarg,packet)
end


MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cGetOpenServerAwardInfo, MiscsImplement.OpenServerSportsInfo)
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cGiveOpenServerAward, MiscsImplement.OpenServerSportsGetAward)




MiscsImplement.OpenServerFirstSeige =  function( sysarg, msgid, packet )
	SendOpenServerGuildSiegeData(sysarg)
end

MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cGetOpenServerFirstSeige, MiscsImplement.OpenServerFirstSeige)



MiscsImplement.OpenServerSendBossInfo =  function( sysarg, msgid, packet )
	OpenServerSendBossInfo(sysarg)
end

MiscsImplement.OpenServerGetBossDieAward =  function( sysarg, msgid, packet )
	OpenServerGetBossDieAward(sysarg,packet)
end


MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cGetOpenServerKillBossInfo, MiscsImplement.OpenServerSendBossInfo)
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cGetOpenServerKillBossAward, MiscsImplement.OpenServerGetBossDieAward)



MiscsImplement.OpenServerDailyRechargeInfo =  function( sysarg, msgid, packet )
    SendOpenServerDailyRechargeData(sysarg)
end

MiscsImplement.OpenServerDailyRechargeAward =  function( sysarg, msgid, packet )
    GetOpenServerDailyRechargeAwards(sysarg, packet)
end
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cGetOpenServerDailyRechargeInfo, MiscsImplement.OpenServerDailyRechargeInfo)
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cGetOpenServerDailyRechargeAward, MiscsImplement.OpenServerDailyRechargeAward)



MiscsImplement.OpenServerTotalRechargeInfo =  function( sysarg, msgid, packet )
    OpenServerTotalRechargeSendData(sysarg)
end

MiscsImplement.OpenServerTotalRechargeAward =  function( sysarg, msgid, packet )
    OpenServerTotalRechargeHandler(sysarg, packet)
end
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cGetOpenServerTotalRechargeInfo, MiscsImplement.OpenServerTotalRechargeInfo)
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cGetOpenServerTotalRechargeAward, MiscsImplement.OpenServerTotalRechargeAward)

MiscsImplement.OpenServerDailyTotalRechargeInfo =  function( sysarg, msgid, packet )
    OpenServerDailyTotalRechargeSendData(sysarg)
end

MiscsImplement.OpenServerDailyTotalRechargeAward =  function( sysarg, msgid, packet )
    OpenServerDailyTotalRechargeHandler(sysarg, packet)
end
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cGetOpenServerDailyTotalRechargeInfo, MiscsImplement.OpenServerDailyTotalRechargeInfo)
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cGetOpenServerDailyTotalRechargeAward, MiscsImplement.OpenServerDailyTotalRechargeAward)


MiscsImplement.GetOpenServerRankData =  function( sysarg, msgid, packet )
    local opType = DataPack.readByte(packet)
    if opType == 1 then
        OpenServerRechargeRankSendData(sysarg)
    elseif opType == 2 then
        OpenServerConsumeRankSendData(sysarg)
    end
end


MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cGetOpenServerRankData, MiscsImplement.GetOpenServerRankData)



MiscsImplement.GetOpenServerFirstRecharge =  function( sysarg, msgid, packet )
    GetOpenServerFirstRecharge(sysarg)
end


MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cOpenServerFirstChargeData, MiscsImplement.GetOpenServerFirstRecharge)

MiscsImplement.OpenServerSuperPurchaseData =  function( sysarg, msgid, packet )
    SendOpenServerSuperPurchaseData(sysarg)
end

MiscsImplement.OpenServerSuperPurchaseOpt =  function( sysarg, msgid, packet )
    OpenServerSuperPurchaseHandler(sysarg, packet)
end

MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cOpenServerSuperPurchaseData, MiscsImplement.OpenServerSuperPurchaseData)
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cOpenServerSuperPurchaseOpt, MiscsImplement.OpenServerSuperPurchaseOpt)

MiscsImplement.OpenServerPKRankData =  function( sysarg, msgid, packet )
    SendOpenServerPKRankData(sysarg, packet)
end

MiscsImplement.OpenServerPKRankAward =  function( sysarg, msgid, packet )
    OpenServerPKRankGetAward(sysarg, packet)
end

MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cGetOpenServerPkRankData, MiscsImplement.OpenServerPKRankData)
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cGetOpenServerPkRankAward, MiscsImplement.OpenServerPKRankAward)



MiscsImplement.OpenServerContinuousRechargeData =  function( sysarg, msgid, packet )
    OpenServerContinuousRechargeData(sysarg, packet)
end

MiscsImplement.OpenServerHeroSwingData =  function( sysarg, msgid, packet )
    OpenServerHeroSwingData(sysarg, packet)
end

MiscsImplement.OpenServerGuildInitData =  function( sysarg, msgid, packet )
    OpenServerGuildInitData(sysarg, packet)
end

MiscsImplement.OpenServerGuildGetAward =  function( sysarg, msgid, packet )
    OpenServerGuildGetAward(sysarg, packet)
end

MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cOpenServerContinuousRechargeData, MiscsImplement.OpenServerContinuousRechargeData)
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cOpenServerHeroSwingData, MiscsImplement.OpenServerHeroSwingData)
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cOpenServerGuildInitData, MiscsImplement.OpenServerGuildInitData)
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cOpenServerGuildGetAward, MiscsImplement.OpenServerGuildGetAward)


MiscsImplement.GetOpenServerEquipGoldRecoverAward =  function( sysarg, msgid, packet )
    GetOpenServerEquipGoldRecoverAward(sysarg, packet)
end

MiscsImplement.SendOpenServerEquipGoldRecoverData =  function( sysarg, msgid, packet )
    SendOpenServerEquipGoldRecoverData(sysarg)
end


MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cOpenServerGoldRocoverAward, MiscsImplement.GetOpenServerEquipGoldRecoverAward)
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cOpenServerGoldRocoverData, MiscsImplement.SendOpenServerEquipGoldRecoverData)


MiscsImplement.OpenServerFashionDisData =  function( sysarg, msgid, packet )
    SendOpenServerFashionDisData(sysarg)
end

MiscsImplement.OpenServerFashionDisOpt =  function( sysarg, msgid, packet )
    BuyOpenServerFashionDis(sysarg, packet)
end

MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cOpenServerFashionDisData, MiscsImplement.OpenServerFashionDisData)
MiscsImplement.registerMsgHandler(LogicCmd.miscSys.sub.cOpenServerFashionDisOpt, MiscsImplement.OpenServerFashionDisOpt)
